package com.dm.service;

import com.dm.dto.ResponseDto;
import com.dm.dto.input.UserDto;
import com.dm.entity.User;

import java.util.List;

/**
 * @author hqw521@qq.com
 * @date 2018/11/15 11:25
 */
public interface UserService {
    /**
     * 登陆
     *
     * @param userDto
     * @return
     */
    ResponseDto<UserDto> login(UserDto userDto);

    /**
     * 注册
     *
     * @param userDto
     * @return
     */
    ResponseDto register(UserDto userDto);

    /**
     * 查询所用用户名
     *
     * @return
     */
    ResponseDto<List<UserDto>> findAllUser();
}
